﻿<UserControl x:Class="Noboru.Demo.ToolStripLabelControlPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:c="clr-namespace:Noboru.Windows.Controls;assembly=Noboru.Windows.Controls">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Border Width="Auto" Height="26" BorderThickness="1,1,1,1" BorderBrush="#FF000000" VerticalAlignment="Center" Padding="0,0,0,0" Margin="0,0,0,10">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF000000" Offset="1"/>
                    <GradientStop Color="#FFB3AFAF" Offset="0.003"/>
                </LinearGradientBrush>
            </Border.Background>
            <TextBlock Text="Tool Strip Label Control" Foreground="White"  VerticalAlignment="Center" HorizontalAlignment="Left" Margin="6,0,0,0"/>
        </Border>
        <Border BorderBrush="Gray" BorderThickness="1" Grid.Row="1" Width="Auto" CornerRadius="5" Margin="10,0,10,0" Padding="8">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFBEC0C2" Offset="0.994"/>
                    <GradientStop Color="#FFE5E5E6" Offset="0.006"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <TextBlock Grid.Column="0" Grid.Row="0" Text="CheckOnClick" HorizontalAlignment="Left" Margin="0, 6, 0, 0" />
                <CheckBox Grid.Column="0" Grid.Row="1" x:Name="CheckOnClickValue" Checked="CheckOnClickValue_Checked" Unchecked="CheckOnClickValue_Unchecked" />
                <TextBlock Grid.Column="0" Grid.Row="2" Text="IsChecked" HorizontalAlignment="Left" Margin="0, 6, 0, 0" />
                <CheckBox Grid.Column="0" Grid.Row="3" x:Name="IsCheckedValue" Checked="IsCheckedValue_Checked" Unchecked="IsCheckedValue_Unchecked" />
                <TextBlock Grid.Column="0" Grid.Row="4" Text="IsEnabled" HorizontalAlignment="Left" Margin="0, 6, 0, 0" />
                <CheckBox Grid.Column="0" Grid.Row="5" x:Name="IsEnabledValue" IsChecked="true" Checked="IsEnabledValue_Checked" Unchecked="IsEnabledValue_Unchecked" />
            </Grid>
        </Border>
        <StackPanel Orientation="Vertical" Grid.Column="0" Grid.Row="2" >
            <c:ToolStripLabel x:Name="ToolStripLabel3" Text="Format Painter" Margin="14, 14, 0, 0" HorizontalAlignment="Left" ImageSource="/Noboru.Demo;component/images/FormatPainter.png" Click="ToolStripLabel3_Click" Width="150" />
            <c:ToolStripLabel x:Name="ToolStripLabel" Text="Blank Page" Height="66" Width="60" TextImageRelation="ImageAboveText" Margin="14, 14, 0, 0" HorizontalAlignment="Left" ImageSource="/Noboru.Demo;component/images/BlankPage.png" Click="ToolStripLabel_Click" />
        </StackPanel>
    </Grid>

</UserControl>
